-
Notifications
You must be signed in to change notification settings - Fork 399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
user image frames and other updates #112
Conversation
6e39c29
to
25459d2
Compare
|
||
@ transport.event_handler("on_first_other_participant_joined") | ||
async def on_first_other_participant_joined(transport, participant): | ||
transport.render_participant_video(participant["id"], color_format="RGB") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was going to say "let's make RGB the default" but I see you already did that 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, actually, since it's the default, let me remove this from here.
curr_time = time.time() | ||
prev_time = self._video_renderers[participant_id]["timestamp"] | ||
diff_time = curr_time - prev_time | ||
period = 1 / self._video_renderers[participant_id]["framerate"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing I know we'll need eventually is an "only on demand" option instead of always setting a frame rate. My way of doing that was maybe a bit clunky but it worked well—by setting the frame rate to 0, the transport would never send frames automatically, but the pipeline could request a new image for a participant by sending a certain frame type (RequestUserImage
or something). Can we add that back in a follow-up PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, sure! makes sense!
25459d2
to
57aabea
Compare
No description provided.